/**
 * 接口路径统一管理模块
 */

import { del, get, post, put } from "./http";

// 陈茹琳
 // 获取新闻列表
export const getNewsList = news => get('/selectNews', news);
// 添加新闻
export const addNews = news => post('/addNews', news);
// 删除新闻
export const delNews = news => del('/delNews', news);
// 查询新闻详情
export const newsDetail = news => get('/newsDetail', news);
// 修改新闻
export const updateNews = news => put('/updateNews', news);

// 吕爻
//获取用户列表
export const getUserList = user => get("/selectUser",user);
//添加用户
export const addUser = user => post ("/addUser",user);
//删除用户
export const delUser = user => del('/delUser',user);
//查询用户详情
export const userDetail = user => get('/userDetail',user);
//修改用户
export const changeUser = user => put('/changeUser',user);

// 张文静
// 用户登录
export const submitStaff = staff => post("/login", staff);
// 获取用户列表
export const getStaffList = staff => get("/selectStaff",staff);
// 添加用户
export const addStaff = staff => post("/addStaff", staff);
// 删除用户
export const delStaff = staff => del('/delStaff', staff);
// 查询用户详情
export const staffDetail = staff => get('/staffDetail', staff);
// 修改用户
export const changeStaff = staff => put('/changeStaff', staff);

// 乔月
// 获取快递列表
export const getExpressList = express => get('/selectExpress',express);
// 添加快递
export const addExpressList = express => post('/addExpress',express);
// 修改快递
export const changeExpress = express => put('/changeExpress',express);
// 快递详情
export const detailExpress = express => get('/detailExpress',express);
// 删除快递信息
export const delExpress = express => del('/delExpress',express);

// 苏林
// 获取业主列表
export const getownerList = owner => get('/selectowner',owner);
// 添加业户
export const addowner = owner =>post('/addowner',owner);
// 删除业主信息
export const delowner = owner =>del('/delowner',owner);
// 查询业主详情
export const ownerDetail = owner =>get('/ownerDetail',owner);
// 修改业主
export const changeowner = owner =>put('/changeowner',owner);

// 张文静
// 获取报修列表
export const getRepairList = repair => get("/selectRepair",repair);
// 添加报修
export const addRepair = repair => post("/addRepair", repair);
// 删除报修
export const delRepair = repair => del('/delRepair', repair);
// 查询报修详情
export const repairDetail = repair => get('/repairDetail', repair);
// 修改报修信息
export const changeRepair = repair => put('/changeRepair', repair);
